<div id="addInspectionPointModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">
                    <vc:i18n name="添加" namespace="addInspectionPoint"></vc:i18n>
                </h3>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检点名称" namespace="addInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <input v-model="addInspectionPointInfo.inspectionName" type="text"
                                :placeholder="vc.i18n('必填，请填写巡检点名称','addInspectionPoint')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检类型" namespace="addInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="addInspectionPointInfo.pointObjType"
                                @change="_pointObjTypeChange()">
                                <option selected disabled value="">
                                    {{vc.i18n('必填，请选择巡检类型','addInspectionPoint')}}
                                </option>
                                <option v-for="(item,index) in addInspectionPointInfo.pointObjTypes" :key="index"
                                    :value="item.statusCd">{{item.name}}
                                </option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row" v-show="addInspectionPointInfo.pointObjType == '2002'">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="位置" namespace="addInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <input v-model="addInspectionPointInfo.pointObjName" type="text"
                                :placeholder="vc.i18n('必填，请填写巡检位置','addInspectionPoint')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-show="addInspectionPointInfo.pointObjType == '1001'">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检设备" namespace="addInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <vc:create path="property/machineSelect2" parentModal="addInspectionPointModel"
                                callBackListener="addInspectionPointInfo" callBackFunction="notify"
                                namespace="addInspectionPoint">
                            </vc:create>
                            <span>请到设备台账中添加设备</span>
                        </div>

                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检项目" namespace="addInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="addInspectionPointInfo.itemId">
                                <option selected disabled value="">
                                    {{vc.i18n('必填，请选择巡检项目','addInspectionPoint')}}
                                </option>
                                <option v-for="(item,index) in addInspectionPointInfo.items" :key="index"
                                    :value="item.itemId">{{item.itemName}}
                                </option>
                            </select>
                        </div>
                        <label class="col-sm-2 col-form-label">nfc编码</label>
                        <div class="col-sm-4">
                            <input v-model="addInspectionPointInfo.nfcCode" type="text"
                                :placeholder="vc.i18n('选填，请填写nfc编码','addInspectionPoint')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="经度" namespace="addInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <input v-model="addInspectionPointInfo.lng" type="text" disabled
                                :placeholder="vc.i18n('选填，请选择经度','addInspectionPoint')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label">纬度</label>
                        <div class="col-sm-4">
                            <input v-model="addInspectionPointInfo.lat" type="text" disabled
                                :placeholder="vc.i18n('选填，请选择纬度','addInspectionPoint')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="备注" namespace="addInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <textarea v-model="addInspectionPointInfo.remark"
                                :placeholder="vc.i18n('选填，请填写备注','addInspectionPoint')" class="form-control"></textarea>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div id="addInspectionPointMap" style="width: 100%;height: 300px;"></div>
                    </div>
                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button"
                            v-on:click="saveInspectionPointInfo()">
                            <i class="fa fa-check"></i>&nbsp;保存
                        </button>
                        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                            data-dismiss="modal">
                            <i class="fa fa-times"></i>&nbsp;取消
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/selectMapPos"></vc:create>
</div>